import {Product} from "../entity/product";
import {Category} from "../entity/category";
/**
 * Created by robin on 2016/8/3 0003.
 */
export class ProductService{
    getLatestProducts():Product[]{
        return [
            {"name":"照相机1","subName":"我是照相机1","price":340.00,"path":"./app/themes/images/products/6.jpg"},
            {"name":"照相机2","subName":"我是照相机2","price":140.00,"path":"./app/themes/images/products/5.jpg"},
            {"name":"照相机3","subName":"我是照相机3","price":440.00,"path":"./app/themes/images/products/4.jpg"},
            {"name":"照相机4","subName":"我是照相机4","price":240.00,"path":"./app/themes/images/products/3.jpg"},
            {"name":"照相机5","subName":"我是照相机5","price":640.00,"path":"./app/themes/images/products/2.jpg"},
            {"name":"照相机6","subName":"我是照相机6","price":740.00,"path":"./app/themes/images/products/1.jpg"}
        ];
    }
    
    getCategory():Category[]{
        return [
            {"name":"category1","parent":null,"children":[
                {"name":"category11","parent":null,"children":null},
                {"name":"category12","parent":null,"children":null},
                {"name":"category13","parent":null,"children":null},
                {"name":"category14","parent":null,"children":null},
                {"name":"category15","parent":null,"children":null},
                {"name":"category16","parent":null,"children":null}
            ]},
            {"name":"category2","parent":null,"children":[
                {"name":"category21","parent":null,"children":null},
                {"name":"category22","parent":null,"children":null},
                {"name":"category23","parent":null,"children":null},
                {"name":"category24","parent":null,"children":null},
                {"name":"category25","parent":null,"children":null},
                {"name":"category26","parent":null,"children":null}
            ]},
            {"name":"category3","parent":null,"children":[
                {"name":"category31","parent":null,"children":null},
                {"name":"category32","parent":null,"children":null},
                {"name":"category33","parent":null,"children":null},
                {"name":"category34","parent":null,"children":null},
                {"name":"category35","parent":null,"children":null},
                {"name":"category36","parent":null,"children":null}
            ]},
            {"name":"category4","parent":null,"children":[
                {"name":"category41","parent":null,"children":null},
                {"name":"category42","parent":null,"children":null},
                {"name":"category43","parent":null,"children":null},
                {"name":"category44","parent":null,"children":null},
                {"name":"category45","parent":null,"children":null},
                {"name":"category46","parent":null,"children":null}
            ]},
            {"name":"category5","parent":null,"children":null},
            {"name":"category6","parent":null,"children":null}
            
        ];
    }
}